import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86186
 * Date: 2023-10-04
 * Time: 17:01
 */
public class Test5 {
    public static void main(String[] args) {
        File file = new File("D:/code/this-is-my-java-ee-learning");
        //listFiles() 方法以File对象的形式返回指定目录下的文件夹/文件的
        File[] files = file.listFiles();
        for (File f : files) {
            System.out.println(f.getName());
        }
    }
}
